package 
{
	import flash.display.MovieClip;
	
	/**
	 * ...
	 * @author DarkGoodWIN
	 */
	public class TModalWindow extends TControl 
	{
		protected var MR: Trect;
		public static var Parent: TControl;
		
		public function Close(): void
		{
			while (Ctrl.numChildren > 0)
				Ctrl.removeChildAt(0);
			Parent.Ctrl.removeChild(MR.Ctrl);
		}

		public function TModalWindow(alfa: Number = 0.3): void
		{
			MR = new Trect(Parent, 0xFFFFBB, 0, 0, 800, 600);
			MR.Ctrl.alpha = alfa;

    		super (new MovieClip(), Parent)
		}
	}
	
}